<template>
  <div class="detail-info">
     <div class="desc">{{detailInfo.desc}}</div>
    <div v-for="(item,index) in detailInfo.img" :key="index">
      <img :src="item" alt="" @load="imageload">
    </div>
  </div>
</template>

<script>
  export default{
    props:{
      detailInfo:{
        type:Object,
        default(){
          return {}
        }
      }
    },
    data:function(){
      return{
        counter:0,
        imageLength:0
      }
    },
    methods:{
      imageload(){
      this.$emit('imageload')
        }
    }
  }

</script>

<style scoped="scoped">
  .detail-info img{
    width: 100%;
  }
  .detail-info .desc{
    margin: 15px 10px;
    font-size: 24px;
    font-family: "calisto mt";
  }
</style>
